﻿package plugin.newteam.control
{
    import flash.events.*;
    import manager.*;
    import morn.core.components.*;
    import plugin.newteam.model.*;
    import uiresource.newteam.*;

    public class YaoQingCtrl extends YaoqingUI
    {
        private var _rid:int;

        public function YaoQingCtrl()
        {
            return;
        }// end function

        public function get rid() : int
        {
            return this._rid;
        }// end function

        public function set rid(param1:int) : void
        {
            this._rid = param1;
            var _loc_2:* = this.getChildByName("txt5") as LinkButton;
            _loc_2.addEventListener(MouseEvent.CLICK, this.yaoqing);
            return;
        }// end function

        override protected function initializeView() : void
        {
            return;
        }// end function

        protected function yaoqing(event:MouseEvent) : void
        {
            PluginManager.instance.sendToServer("team", CMDteam.TEAM_INVITE, this._rid);
            return;
        }// end function

    }
}
